package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_peak_hold_donate", desc = "巅峰据点战-道具捐献", autoSave = true, uploadCk = true)
public class LogPeakHoldItemDonate extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "轮次", isIndex = true)
    private int round;
    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "捐献id")
    private int doanteId;
    @FieldTypeAnnotation(desc = "捐献内容")
    private String donateConsume;
    @FieldTypeAnnotation(desc = "奖励")
    private String rewards;
    @FieldTypeAnnotation(desc = "捐献次数")
    private int doanteNum;
    @FieldTypeAnnotation(desc = "获得经验")
    private int expAdd;
    @FieldTypeAnnotation(desc = "捐献前经验")
    private int hpAddBefore;
    @FieldTypeAnnotation(desc = "捐献后经验")
    private int hpAddAfter;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogPeakHoldItemDonate(int activityId, int round, long userId, int doanteId, String donateConsume, String rewards, int doanteNum, int expAdd, int hpAddBefore, int hpAddAfter) {
        this.activityId = activityId;
        this.round = round;
        this.userId = userId;
        this.doanteId = doanteId;
        this.donateConsume = donateConsume;
        this.rewards = rewards;
        this.doanteNum = doanteNum;
        this.expAdd = expAdd;
        this.hpAddBefore = hpAddBefore;
        this.hpAddAfter = hpAddAfter;
        this.logTime = new Date();
    }

    public long getUserId() {
        return userId;
    }
}
